package com.qianda.qdminiapp.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.qianda.qdminiapp.domain.data.OrderTowalData;
import com.qianda.qdminiapp.domain.dto.OrderReturnDto;
import com.qianda.qdminiapp.domain.dto.PageRequest;
import com.qianda.qdminiapp.domain.model.order.QqdOrderTowel;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 毛巾购买订单 服务类
 * </p>
 *
 * @author cw
 * @since 2019-08-14
 */
public interface QqdOrderTowelService extends IService<QqdOrderTowel> {

    /*
     *  订单返回
     * @Description
     * @Author cw
     * @Date 17:45 2019/8/16
     * @Param [orderReturnDto]
     * @return void
     **/
    void orderRemoteReturn(OrderReturnDto orderReturnDto);

    void orderRemoteErrorReturn(OrderReturnDto orderReturnDto);

    /*
     * 获取用户订单
     * @Description
     * @Author cw
     * @Date 11:07 2019/8/29
     * @Param [userId]
     * @return java.util.List<com.qianda.qdminiapp.domain.model.order.QqdOrderTowel>
     **/
    IPage<OrderTowalData> findOrder(Long userId, PageRequest pageRequest);

    void sharBenefitStart(QqdOrderTowel qqdOrderTowel);


}
